// Sku管理页面相关api
import productRequest from '@/utils/productRequest'

// export const req = ()=>productRequest({url:``,method:''})

// 获取sku分页数据
// /admin/product/list/{page}/{limit}   get
export const reqGetSkuList = (page, limit) => productRequest({ url: `/admin/product/list/${page}/${limit}`, method: 'get' })

// sku上架
// /admin/product/onSale/{skuId}   get
export const reqSkuOnSale = (skuId) => productRequest({ url: `/admin/product/onSale/${skuId}`, method: 'get' })

// sku下架
// /admin/product/cancelSale/{skuId}  get
export const reqSkuCancelSale = (skuId) => productRequest({ url: `/admin/product/cancelSale/${skuId}`, method: 'get' })

// sku详情
// /admin/product/getSkuById/{skuId}   get
export const reqGetSkuInfo = (skuId) => productRequest({ url: `/admin/product/getSkuById/${skuId}`, method: 'get' })

// 删除sku
// /admin/product/deleteSku/{skuId}   delete
export const reqDeleteSku = (skuId) => productRequest({ url: `/admin/product/deleteSku/${skuId} `, method: 'delete' })


